//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class ClaimAchivement extends LogicCommand {
    private final int cmdId = 51;
    private final int achivementId;

    public ClaimAchivement(int ticks, int id) {
        super(ticks);
        this.achivementId = id;
    }

    public int getCommandId() {
        return 51;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(51);
        stream.writeInt(this.achivementId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
